package com.shuwen.gcdj.entity;


import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 单体(Units)表实体类
 *
 * @author makejava
 * @since 2023-03-29 19:05:59
 */
@SuppressWarnings("units")
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_units")
public class Units extends Model<Units> implements Serializable {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    //单体类型（动力）
    private String gasUnitType;
    //单体类型（给排水）
    private String waterUnitType;
    //单体类型（供电）
    private String elecUnitType;
    //子类型
    private String subType;
    //车间/工序
    private String process;
    //单体编码
    private String code;
    //附加信息
    private String info;
    //Model Id
    private String modelId;

    private Integer generation;
    //排序
    private Integer sort;
    //状态（启用，禁用）
    private Integer active;
    //节点名称
    private String name;
    //备注
    private String note;

    private String parentId;
    //创建者ID
    private String createId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //修改者ID
    private String updateId;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //是否删除：0-否，1-是
    private Integer isDelete;
}

